#include<iostream>
#include<string>

using namespace std;

struct Node                       
{  
	Node(string Fname,string Lname,int CN, float AccntBalans,Node* _pNext = NULL)
		:m_pHeadName(Fname),LastName(Lname), customerNUmber(CN), AccntBalance(AccntBalans), pNext(_pNext)
	{
	}
	string m_pHeadName;
	string LastName;
	int customerNUmber;
	float AccntBalance;
	Node *pNext;                    
};  

class Nodelist                    
{  
private:  
	//Node *m_pTopNode;
	Node* m_pHead;  //Start Pointer
	int size;
public:  


	Nodelist(){ m_pHead = NULL, size =0; } //put to null   
	~Nodelist( void );
	//AddNode(FN,LN,CustNum,Balance) ;
	void additem(Node *pNode);
	void additem(string FName,string LName, int CNumber,float AB);    
	Node* GetTopNode(void) const;
	void RemoveTopNode(void);
	void SortCustNum(void);
	void display( void );  

	void SetPrice( int CNumber  ) 
	{  m_pHead->customerNUmber=CNumber;}
	int  GetPrice() const 
	{ return m_pHead->customerNUmber;}



};


